package edu.njust.dao;
import edu.njust.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecordMapper {
    //
    List<Record> getRecordListByStudentIDAndType(@Param("student_id") String student_id ,@Param("type") Integer type);

    //
    Integer addRecord(@Param("record") Record record);

    Record getRecordByItemId(Long Item_id);

    List<Record> getRecordListByItemList(List<ReservationItem> reservationItemList);

    //
    Integer quitRecord(@Param("record") Record record);


    //
    Integer quitRecordList(List<Long> recordIdList);

    Long getLastRecordId();
}
